package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter@Setter@ToString
public class Attendance {
    private Long id;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date signDate;

    private Employee user;
    @JsonFormat(pattern = "HH:mm:ss" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date signTime;
    @JsonFormat(pattern = "HH:mm:ss" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date signOutTime;
}